package com.longyue.ms.app.service;

import com.longyue.ms.app.entity.CarType;
import com.longyue.ms.app.vo.CarTypeParam;
import com.longyue.ms.common.bean.AjaxResult;
import com.longyue.ms.common.bean.Pagination;

/**
 * @Description
 * @Author lishengpeng
 * @Date 2023/1/31 17:51
 */
public interface CarTypeService {
    /**
     * 分类列表
     *
     * @param carTypeParam
     * @return com.longyue.ms.common.bean.Pagination<com.longyue.ms.app.entity.CarType>
     **/
    Pagination<CarType> getPageData(CarTypeParam carTypeParam) throws Exception;

    /**
     * 添加分类
     *
     * @param carType
     * @return com.longyue.ms.common.bean.AjaxResult
     **/
    AjaxResult addCarType(CarType carType) throws Exception;

    /**
     * 删除车辆类型
     *
     * @param id
     * @return com.longyue.ms.common.bean.AjaxResult
     * @param:
     * @return:
     **/
    AjaxResult deleteById(Integer id);

    /**
     * 更新
     *
     * @param carType
     * @return com.longyue.ms.common.bean.AjaxResult
     **/
    AjaxResult updateType(CarType carType);

    /**
     * 详情
     *
     * @param id
     * @return com.longyue.ms.app.entity.CarType
     **/
    CarType getById(Integer id);
}
